<!-- 表单修改 -->

<template>
  <WebForm :disabled="!one.id">
    <EasyRow col2>
      <FormInput label="分类名称" bind="assetTypeName" :max="10" required />
      <FormTree label="上级分类" bind="parentId" :dict="$root.device_category_treeDict" allName disabled />
    </EasyRow>

    <FormTextarea label="分类描述" bind="description" :rows="2" :max="20" required />

    <EditButton :noDel="one.layer === 1" />
  </WebForm>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'FormEdit',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb()],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('@admin/views/System/Dict/DictData/FormEdit', true, /vue$/)),
}
</script>
